<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
      <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta content="" name="description" />
    <meta content="webthemez" name="author" />
    <title>Bootstrap Admin html Template</title>
	<!-- Bootstrap Styles-->
    <link href="__PUBLIC__static/admin/assets/css/bootstrap.css" rel="stylesheet" />
     <!-- FontAwesome Styles-->
    <link href="__PUBLIC__static/admin/assets/css/font-awesome.css" rel="stylesheet" />
     <!-- Morris Chart Styles-->
   
        <!-- Custom Styles-->
    <link href="__PUBLIC__static/admin/assets/css/custom-styles.css" rel="stylesheet" />
     <!-- Google Fonts-->
   <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
     <!-- TABLE STYLES-->
    <link href="__PUBLIC__static/admin/assets/js/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
    
</head>
<body>
    <div id="wrapper">
        {include file="layout/top" / }
        <!--/. NAV TOP  -->
      {include file="layout/left" / }
        <!-- /. NAV SIDE  -->
        <div id="page-wrapper" >
		  <div class="header"> 
                        <h1 class="page-header">
                            评 论 <small>列 表</small>
                        </h1>
						<ol class="breadcrumb">
					  <li><a href="{:url('admin/ht/index')}">Home</a></li>
					  <li>评论列表</li>
					  
					</ol> 
									
		</div>
		
            <div id="page-inner"> 
               
            
                <!-- /. ROW  -->
            <div class="row">
                <div class="col-md-12">
                  <!--   Kitchen Sink -->
                    <div class="panel panel-default">
                      
                    <div class="row">
                        <div class="col-xs-12">                 
                            <div class="panel panel-default">
                                <div class="panel-body">
                                    <form action="{:url('admin/comment/search')}" method="post" class="form-inline">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="search" id="exampleInputName2" placeholder="商家名称">
                                        </div>
                                        <button type="submit" class="btn btn-default">搜索</button>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>    
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover">
                                    <thead>
                                        <tr>
                                            <th style=" text-align: center;line-height:20px">商家名称</th>
                                            <th style=" text-align: center;line-height:20px">评论内容</th>
                                            <th style=" text-align: center;line-height:20px">评价分数</th>
                                            <th style=" text-align: center;line-height:20px">评价时间</th>
                                            <th style=" text-align: center;line-height:20px">状态</th>
                                            <th style=" text-align: center;line-height:20px">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                       {volist name="data" id="data"}

                                        <tr class="odd gradeX">
                                            <td style=" text-align: center;line-height:100px">{$data.business_name}</td>
                                            <td style=" text-align: center;line-height:100px">{$data.comment}</td>
                                            <td style=" text-align: center;line-height:100px"> {$data.mark} </td>
                                            <td style=" text-align: center;line-height:100px">{$data.shangchuan}</td>
                                            <td style=" text-align: center;line-height:100px">
                                                {if condition="$data.static == 1"}
                                          
                                            <a  class="btn btn-warning btn-sm">
                                                    <i class="fa fa-edit"></i> 未回复
                                                </a>
                                            {elseif condition="$data.static == 2"}
                                            <a  class="btn btn-success btn-sm">
                                                    <i class="fa fa-edit"></i> 已回复
                                                </a>
                                            {/if}
                                            </td>
                                            
                                            <td class=" center" style=" text-align: center;line-height:100px">
                                            {if condition="$data.static == 1"}
                                            <a href="{:url('admin/comment/reply',array('id' => $data.cid))}" class="btn btn-info btn-sm">
                                                    <i class="fa fa-edit"></i> 回复
                                                </a>
                                            {else /}
                                            {/if}
                                           <a class="btn btn-danger btn-sm" href="{:url('admin/users/delete',array('id' => $data.id))}">移除</a>
                                           </td>
                                            
                                       
                                        </tr>
                                    {/volist}
                                    </tbody>


                                </table>
                                 {$page}
                            </div>
                        </div>
                    </div>
                     <!-- End  Kitchen Sink -->
                </div>
                
            </div>
           
             
        </div>
               
    </div>
             <!-- /. PAGE INNER  -->
            </div>
         <!-- /. PAGE WRAPPER  -->
     <!-- /. WRAPPER  -->
    <!-- JS Scripts-->
    <!-- jQuery Js -->
    <script src="__PUBLIC__static/admin/assets/js/jquery-1.10.2.js"></script>
      <!-- Bootstrap Js -->
    <script src="__PUBLIC__static/admin/assets/js/bootstrap.min.js"></script>
    <!-- Metis Menu Js -->
    <script src="__PUBLIC__static/admin/assets/js/jquery.metisMenu.js"></script>
     <!-- DATA TABLE SCRIPTS -->
    <script src="__PUBLIC__static/admin/assets/js/dataTables/jquery.dataTables.js"></script>
    <script src="__PUBLIC__static/admin/assets/js/dataTables/dataTables.bootstrap.js"></script>
        <script>
            $(document).ready(function () {
                $('#dataTables-example').dataTable();
            });
    </script>
         <!-- Custom Js -->
    <script src="__PUBLIC__static/admin/assets/js/custom-scripts.js"></script>
    
   
</body>
</html>
